package com.example.health;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;

@SuppressLint("ValidFragment")
public class Board_Frg001 extends Fragment {
	Context mContext;
	
	public Board_Frg001(Context context) {
		mContext = context;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.activity_board_frg1, null);
		
		Button button1;
		button1 = (Button) view.findViewById(R.id.button1);
		
		button1.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Uri uri = Uri.parse("http://whdghks913.tistory.com");
		    	Intent it  = new Intent(Intent.ACTION_VIEW, uri);
		    	startActivity(it);
			}
    	});
		
    	return view;
	}
}
